//
//  MLMultiSelectButton.h
//  TycoonSale
//
//  Created by molon on 15/8/6.
//  Copyright (c) 2015年 molon. All rights reserved.
//

#import <UIKit/UIKit.h>

@class MLMultiSelectButton;
@class SelectItemArray;
@protocol MLMultiSelectButtonDelegate <NSObject>

- (void)doneWithMultiSelectButton:(MLMultiSelectButton*)multiSelectButton;

@optional
- (BOOL)shouldBecomeFirstResponderWithMultiSelectButton:(MLMultiSelectButton*)multiSelectButton;
- (void)resignFirstResponderWithMultiSelectButton:(MLMultiSelectButton*)multiSelectButton;
- (void)becomeFirstResponderWithMultiSelectButton:(MLMultiSelectButton*)multiSelectButton;

//自定义取消事件
- (void)customClickCancle;
- (NSString*)customCancelTitle;

@end


@interface MLMultiSelectButton : UIButton

@property (nonatomic, weak) id<MLMultiSelectButtonDelegate> delegate;

@property (nonatomic, copy) NSString *inputTitle;

//MLMultiSelectItem集合
@property (nonatomic, strong) SelectItemArray *items;

@property (nonatomic, assign) BOOL dontDisplayDimmingView;

- (void)touchUpInSide;

@end
